Socket
Socket
Sign inDemoInstall

tabster

Package Overview
Dependencies
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tabster

Focus Management Tools for Web


Version published
Weekly downloads
113K
decreased by-12.54%
Maintainers
1
Weekly downloads
 
Created

What is tabster?

Tabster is a JavaScript library that helps manage focus and keyboard navigation in web applications. It provides a set of utilities to create accessible and user-friendly navigation experiences, especially for users who rely on keyboard interactions.

What are tabster's main functionalities?

Focus Management

This feature allows you to manage focus within a specific root element. You can define which elements are focusable and control the focus flow within the root.

const tabster = createTabster(window);
const root = getTabsterAttribute({ root: {} });
const focusable = getTabsterAttribute({ focusable: {} });

// Apply attributes to elements
document.getElementById('rootElement').setAttribute('data-tabster', root);
document.getElementById('focusableElement').setAttribute('data-tabster', focusable);

Keyboard Navigation

This feature enables keyboard navigation within a defined area. By setting the 'mover' attribute, you can control how keyboard navigation behaves within that area.

const tabster = createTabster(window);
const mover = getTabsterAttribute({ mover: {} });

// Apply attributes to elements
document.getElementById('moverElement').setAttribute('data-tabster', mover);

Modal Management

This feature helps manage focus within modal dialogs. By setting the 'modalizer' attribute, you can ensure that focus is trapped within the modal and does not escape to the underlying content.

const tabster = createTabster(window);
const modalizer = getTabsterAttribute({ modalizer: {} });

// Apply attributes to elements
document.getElementById('modalElement').setAttribute('data-tabster', modalizer);

Other packages similar to tabster

FAQs

Package last updated on 27 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc